import { v4 } from 'node-uuid';
import React from 'react';

export default [
  {
    path: '/System',
    component: React.lazy(() => {
      return import('../views/System');
    }),
    title: '系统管理',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/System/Menu',
        component: React.lazy(() => {
          return import('../views/System/Menu.jsx');
        }),
        title: '菜单管理',
        id: v4(),
        isOpen: false,
        isNav: false,
        isExact: false,
      },
      {
        path: '/System/Role',
        component: React.lazy(() => {
          return import('../views/System/Role.jsx');
        }),
        title: '角色管理',
        id: v4(),
        isNav: false,
        isExact: true,
      },
    ],
  },
  {
    path: '/People',
    component: React.lazy(() => {
      return import('../views/People');
    }),
    title: '人事管理',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/People/Department',
        component: React.lazy(() => {
          return import('../views/People/Department.jsx');
        }),
        title: '部门档案',
        id: v4(),
        isOpen: false,
        isNav: true,
        isExact: false,
      },
      {
        path: '/People/Position',
        component: React.lazy(() => {
          return import('../views/People/Position.jsx');
        }),
        title: '职位档案',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/People/StaffRecords',
        component: React.lazy(() => {
          return import('../views/People/StaffRecords.jsx');
        }),
        title: '员工档案',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/People/Qr',
        component: React.lazy(() => {
          return import('../views/People/Qr.jsx');
        }),
        title: '入职二维码',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/People/iTunes',
        component: React.lazy(() => {
          return import('../views/People/iTunes.jsx');
        }),
        title: '账号管理',
        id: v4(),
        isNav: true,
        isExact: true,
      },
    ],
  },
  {
    path: '/Students',
    component: React.lazy(() => {
      return import('../views/Students');
    }),
    title: '招生管理',
    id: v4(),
    isNav: true,
    isExact: false,
    children: [
      {
        path: '/Students/two',
        component: React.lazy(() => {
          return import('../views/Students/2.jsx');
        }),
        title: 'two',
        id: v4(),
        isNav: false,
        isExact: true,
      },
      {
        path: '/Students/one',
        component: React.lazy(() => {
          return import('../views/Students/1.jsx');
        }),
        title: 'one',
        id: v4(),
        isNav: false,
        isExact: true,
      },
    ],
  },
  {
    path: '/Training',
    component: React.lazy(() => {
      return import('../views/Training');
    }),
    title: '培训管理',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/Training/PunchIn',
        component: React.lazy(() => {
          return import('../views/Training/PunchIn.jsx');
        }),
        title: '打卡时间配置',
        id: v4(),
        isOpen: false,
        isNav: true,
        isExact: false,
      },
      {
        path: '/Training/Class',
        component: React.lazy(() => {
          return import('../views/Training/Class.jsx');
        }),
        title: '课程档案',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Training/Plan',
        component: React.lazy(() => {
          return import('../views/Training/Plan.jsx');
        }),
        title: '培训计划',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Training/MyClass',
        component: React.lazy(() => {
          return import('../views/Training/MyClass.jsx');
        }),
        title: '我的课程列表',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Training/Registration',
        component: React.lazy(() => {
          return import('../views/Training/Registration.jsx');
        }),
        title: '培训报名列表',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Training/ToPunch',
        component: React.lazy(() => {
          return import('../views/Training/ToPunch.jsx');
        }),
        title: '培训打卡导入',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Training/Sign',
        component: React.lazy(() => {
          return import('../views/Training/Sign.jsx');
        }),
        title: '培训签到记录',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Training/Conference',
        component: React.lazy(() => {
          return import('../views/Training/Conference');
        }),
        title: '会议室管理',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Training/Conference/Files',
            component: React.lazy(() => {
              return import('../views/Training/Conference/Files.jsx');
            }),
            title: '会议室档案',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Training/Conference',
            component: React.lazy(() => {
              return import('../views/Training/Conference/List.jsx');
            }),
            title: '会议室申请列表',
            id: v4(),
            isNav: false,
            isExact: true,
          },
        ],
      },
    ],
  },
  {
    path: '/Hospitality',
    component: React.lazy(() => {
      return import('../views/Hospitality');
    }),
    title: '招待住宿',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/Hospitality/Dormitory',
        component: React.lazy(() => {
          return import('../views/Hospitality/Dormitory');
        }),
        title: '宿舍管理',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Hospitality/Dormitory/Files',
            component: React.lazy(() => {
              return import('../views/Hospitality/Dormitory/Residence.jsx');
            }),
            title: '宿舍楼档案',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Hospitality/Dormitory/TheDormitory',
            component: React.lazy(() => {
              return import('../views/Hospitality/Dormitory/TheDormitory.jsx');
            }),
            title: '宿舍档案',
            id: v4(),
            isNav: false,
            isExact: true,
          },
        ],
      },
      {
        path: '/Hospitality/Archives',
        component: React.lazy(() => {
          return import('../views/Hospitality/Archives.jsx');
        }),
        title: '宿舍物品档案',
        id: v4(),
        isNav: true,
        isExact: false,
      },
      {
        path: '/Hospitality/CheckIn',
        component: React.lazy(() => {
          return import('../views/Hospitality/CheckIn.jsx');
        }),
        title: '入住列表',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Hospitality/PunchIn',
        component: React.lazy(() => {
          return import('../views/Hospitality/PunchIn.jsx');
        }),
        title: '入住记录',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Hospitality/Statistics',
        component: React.lazy(() => {
          return import('../views/Hospitality/Statistics.jsx');
        }),
        title: '我的课程列表',
        id: v4(),
        isNav: true,
        isExact: true,
      },
      {
        path: '/Hospitality/Damaged',
        component: React.lazy(() => {
          return import('../views/Hospitality/Damaged.jsx');
        }),
        title: '物品损坏',
        id: v4(),
        isNav: true,
        isExact: true,
      },
    ],
  },
  {
    path: '/Approval',
    component: React.lazy(() => {
      return import('../views/Approval');
    }),
    title: '审批管理',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/Approval/Approval',
        component: React.lazy(() => {
          return import('../views/Approval/Approval');
        }),
        title: '办事处申请审批',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Approval/Approval/Set',
            component: React.lazy(() => {
              return import('../views/Approval/Approval/Set.jsx');
            }),
            title: '审批流程设置',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Approval/Approval/List',
            component: React.lazy(() => {
              return import('../views/Approval/Approval/List.jsx');
            }),
            title: '我的申请列表',
            id: v4(),
            isNav: false,
            isExact: true,
          },
          {
            path: '/Approval/Approval/MyList',
            component: React.lazy(() => {
              return import('../views/Approval/Approval/MyList.jsx');
            }),
            title: '我的审核列表',
            id: v4(),
            isNav: false,
            isExact: true,
          },
          {
            path: '/Approval/Approval/All',
            component: React.lazy(() => {
              return import('../views/Approval/Approval/All.jsx');
            }),
            title: '宿舍所有审核列表档案',
            id: v4(),
            isNav: false,
            isExact: true,
          },
        ],
      },
      {
        path: '/Approval/Teacher',
        component: React.lazy(() => {
          return import('../views/Approval/Teacher');
        }),
        title: '招生老师入职审批(作废)',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Approval/Dormitory/Process',
            component: React.lazy(() => {
              return import('../views/Approval/Teacher/Process.jsx');
            }),
            title: '审批流程设置',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Approval/Approval/Application',
            component: React.lazy(() => {
              return import('../views/Approval/Teacher/Application.jsx');
            }),
            title: '我的申请列表',
            id: v4(),
            isNav: false,
            isExact: true,
          },
          {
            path: '/Approval/Approval/List',
            component: React.lazy(() => {
              return import('../views/Approval/Teacher/List.jsx');
            }),
            title: '我的审核列表',
            id: v4(),
            isNav: false,
            isExact: true,
          },
        ],
      },
      {
        path: '/Approval/Visit',
        component: React.lazy(() => {
          return import('../views/Approval/Visit');
        }),
        title: '参观培训报销审批',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Approval/Visit/Pei',
            component: React.lazy(() => {
              return import('../views/Approval/Visit/Pei.jsx');
            }),
            title: '参观培训报销审核',
            id: v4(),
            isNav: false,
            isExact: false,
          },
        ],
      },
      {
        path: '/Approval/Chu',
        component: React.lazy(() => {
          return import('../views/Approval/Chu');
        }),
        title: '出差报销审批(作废)',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Approval/Chu/Bao',
            component: React.lazy(() => {
              return import('../views/Approval/Chu/Bao.jsx');
            }),
            title: '出差报销审核',
            id: v4(),
            isNav: false,
            isExact: false,
          },
        ],
      },
    ],
  },
  {
    path: '/Financial',
    component: React.lazy(() => {
      return import('../views/Financial');
    }),
    title: '财务管理',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/Financial/Yin',
        component: React.lazy(() => {
          return import('../views/Financial/Yin');
        }),
        title: '银行账号管理',
        id: v4(),
        isNav: true,
        isExact: false,
      },
      {
        path: '/Financial/Cost',
        component: React.lazy(() => {
          return import('../views/Financial/Cost');
        }),
        title: '费用档案配置',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Financial/Cost/Ceng',
            component: React.lazy(() => {
              return import('../views/Financial/Cost/Ceng.jsx');
            }),
            title: '学习层次设置',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Financial/Cost/Biao',
            component: React.lazy(() => {
              return import('../views/Financial/Cost/Biao.jsx');
            }),
            title: '学费标准设置',
            id: v4(),
            isNav: false,
            isExact: true,
          },
          {
            path: '/Financial/Cost/Registration',
            component: React.lazy(() => {
              return import('../views/Financial/Cost/Registration.jsx');
            }),
            title: '学历注册费标准设置',
            id: v4(),
            isNav: false,
            isExact: true,
          },
          {
            path: '/Financial/Cost/ZhuBiao',
            component: React.lazy(() => {
              return import('../views/Financial/Cost/ZhuBiao.jsx');
            }),
            title: '住宿费标准设置',
            id: v4(),
            isNav: false,
            isExact: true,
          },
          {
            path: '/Financial/Cost/Za',
            component: React.lazy(() => {
              return import('../views/Financial/Cost/Za.jsx');
            }),
            title: '学杂费标准设置',
            id: v4(),
            isNav: false,
            isExact: true,
          },
        ],
      },
      {
        path: '/Financial/Shou',
        component: React.lazy(() => {
          return import('../views/Financial/Shou');
        }),
        title: '收款管理',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Financial/Shou/StudentShou',
            component: React.lazy(() => {
              return import('../views/Financial/Shou/StudentShou.jsx');
            }),
            title: '学生收费列表',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Financial/Shou/ShouKuan',
            component: React.lazy(() => {
              return import('../views/Financial/Shou/ShouKuan.jsx');
            }),
            title: '收款列表',
            id: v4(),
            isNav: false,
            isExact: true,
          },
        ],
      },
      {
        path: '/Financial/Pay',
        component: React.lazy(() => {
          return import('../views/Financial/Pay');
        }),
        title: '付款管理',
        id: v4(),
        isNav: false,
        isExact: false,
        isOpen: false,
        children: [
          {
            path: '/Financial/Pay/ChuBao',
            component: React.lazy(() => {
              return import('../views/Financial/Pay/ChuBao.jsx');
            }),
            title: '出差报销',
            id: v4(),
            isNav: false,
            isExact: false,
          },
          {
            path: '/Financial/Pay/KuanList',
            component: React.lazy(() => {
              return import('../views/Financial/Pay/KuanList.jsx');
            }),
            title: '付款列表',
            id: v4(),
            isNav: false,
            isExact: false,
          },
        ],
      },
    ],
  },
  {
    path: '/Educational',
    component: React.lazy(() => {
      return import('../views/Educational');
    }),
    title: '教务管理',
    id: v4(),
    isNav: true,
    isExact: false,
    isOpen: false,
    children: [
      {
        path: '/Educational/College',
        component: React.lazy(() => {
          return import('../views/Educational/College.jsx');
        }),
        title: '学院档案管理',
        id: v4(),
        isOpen: false,
        isNav: false,
        isExact: false,
      },
      {
        path: '/Educational/Profile',
        component: React.lazy(() => {
          return import('../views/Educational/Profile.jsx');
        }),
        title: '专业档案管理',
        id: v4(),
        isNav: false,
        isExact: true,
      },
      {
        path: '/Educational/ClassRoom',
        component: React.lazy(() => {
          return import('../views/Educational/ClassRoom.jsx');
        }),
        title: '班级档案管理',
        id: v4(),
        isOpen: false,
        isNav: false,
        isExact: false,
      },
      {
        path: '/Educational/NewStudent',
        component: React.lazy(() => {
          return import('../views/Educational/NewStudent.jsx');
        }),
        title: '新生入学分班',
        id: v4(),
        isNav: false,
        isExact: true,
      },
      {
        path: '/Educational/XueJi',
        component: React.lazy(() => {
          return import('../views/Educational/XueJi.jsx');
        }),
        title: '学籍管理',
        id: v4(),
        isNav: false,
        isExact: true,
      },
    ],
  },
  {
    path: '/',
    redirect: '/System',
    id: v4(),
    isNav: false,
  },
];
